import SynchronizationLoginNork from '@/utils/SynchronizationLoginWork'
import Synchronization from "@/utils/Synchronization"
import service from '@/utils/request'
export interface AllocationAndAccountingInstructions {
    total: number,
    dto: AllocationOfAccountsDto[]
}

export interface AllocationOfAccountsDto {
    lotNo: string,
    style: string,
    color: string,
    ordQty: number,
    lotCycle: null
}

export interface CommandParameter {
    lotNo: string,
    pageNum: number,
    pageSize: number,
    style: string
}

export const InstructAllocationAnd = (parms: CommandParameter) => {
    return service.put<any, AllocationAndAccountingInstructions>('/pcFactorQuery/queryCuttingPartLsLot', parms)
}

export const CycleData = (lotNo: string) => {
    return service.get<any, any>(`/pcFactorQuery/queryCuttingPartLs/${lotNo}`)
}

export interface SubjectDataParameter {
    lotNo: string,
    lsNo: number,
    mtlCode: string,
    processCode: string
}

export interface TableMain {
    dto: TableMainDto[],
    supportTotal: any
}

export interface TableMainDto {
    collectDate: null
    cutSeq: string
    partName: string
    qty:any
    total: string
}

export interface qty{
    35:string
    36:string
    37:string
    38:string
    39:string
    40:string
    41:string
    42:string
    43:string
    44:string
    45:string
}

export const SubjectData = (parms: SubjectDataParameter) => {
    return service.put<any,any>(`/pcFactorQuery/queryCuttingPartLsDetail`, parms)
}

export const DropDownData = () => {
    return service.get<any, any>(`/pcFactorQuery/queryCuttingPartLsBack`)
}